/*
 * @Author: yhlz-${username}
 * @Date: 2022-02-05 20:44:40
 * @LastEditTime: 2022-02-06 15:56:18
 * @LastEditors: yhlz-${username}
 * yhlz.com
 */
import { createApp } from "vue";
import App from "./App.vue";
import router from "./router/index";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import * as Icons from "@element-plus/icons-vue";
import { toLine } from "./utils";
const app = createApp(App);

for (let i in Icons) {
  //图标全局注册
  app.component(`el-icon-${toLine(i)}`, (Icons as any)[i]);
}

app.use(router).use(ElementPlus);
app.mount("#app");
